package com.xm.xmapp.response.bean;

import android.graphics.Bitmap;

import com.amap.api.maps.model.LatLng;
import com.xm.xmapp.map.ClusterItem;
import com.xm.xmapp.tools.StringTools;

public class CarInfoBean implements ClusterItem {

	private static final long serialVersionUID = -3470166630577494629L;
	public Double car_longitude, car_latitude;
	public int is_subscribe, is_fault, car_seat, is_maintain, is_rent;
	public float starting_fare, day_max_money;
	private float dianLiang;

	private double endurance;
	public String car_id, car_number, off_minute_money, on_minute_money, subscribe_order_id, car_genre_img,
			car_genre_name, disabled_reason, network_id;

	public void setEndurance(double endurance) {
		this.endurance = endurance;
	}

	public void setDianLiang(float dianLiang) {
		this.dianLiang = dianLiang;
	}

	public int getDianLiang() {
		return (int) dianLiang;
	}

	public double getEndurance() {
		return StringTools.getDdouble(endurance);
	}

	@Override
	public LatLng getLatLng() {
		return new LatLng(car_latitude, car_longitude);
	}

	@Override
	public String getName() {
		return null;
	}

	@Override
	public int getNetworkId() {
		return 0;
	}

	@Override
	public int getCars(int flag) {
		return 0;
	}

	@Override
	public Bitmap getImageBitmap(int flag) {
		return null;
	}

	@Override
	public int getIs_send_car_service() {
		return 0;
	}

	@Override
	public int getCar_total() {
		return 0;
	}

	@Override
	public int getType() {
		return ClusterItem.TYPE_CAR;
	}

	@Override
	public boolean hasImgs() {

		return false;
	}
}
